package com.health.healthSys.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.health.common.annotation.Excel;
import com.health.common.core.domain.BaseEntity;

/**
 * 用户运动记录对象 health_sport
 *
 * @author maple
 * @date 2025-03-02
 */
public class HealthSport extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 运动ID */
    private String sportId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 运动类型 */
    @Excel(name = "运动类型")
    private String sportType;

    @Excel(name = "用户名称")
    private String userName;
    /** 运动时长 */
    @Excel(name = "运动时长")
    private BigDecimal duration;

    /** 运动距离 */
    @Excel(name = "运动距离")
    private BigDecimal distance;

    /** 消耗卡路里 */
    @Excel(name = "消耗卡路里")
    private BigDecimal calories;

    private Long deptId;

    private String beginDate;  // 开始日期（非数据库字段）
    private String endDate;    // 结束日期（非数据库字段）

    public String getBeginDate() {
        return beginDate;
    }

    public void setBeginDate(String beginDate) {
        this.beginDate = beginDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    /** 记录日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date recordDate;

    public void setSportId(String sportId)
    {
        this.sportId = sportId;
    }

    public String getSportId()
    {
        return sportId;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setSportType(String sportType)
    {
        this.sportType = sportType;
    }

    public String getSportType()
    {
        return sportType;
    }
    public void setDuration(BigDecimal duration)
    {
        this.duration = duration;
    }

    public BigDecimal getDuration()
    {
        return duration;
    }
    public void setDistance(BigDecimal distance)
    {
        this.distance = distance;
    }

    public BigDecimal getDistance()
    {
        return distance;
    }
    public void setCalories(BigDecimal calories)
    {
        this.calories = calories;
    }

    public BigDecimal getCalories()
    {
        return calories;
    }
    public void setRecordDate(Date recordDate)
    {
        this.recordDate = recordDate;
    }

    public Date getRecordDate()
    {
        return recordDate;
    }

    public Long getDeptId()
    {
        return deptId;
    }
    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("sportId", getSportId())
            .append("userId", getUserId())
            .append("sportType", getSportType())
            .append("duration", getDuration())
            .append("distance", getDistance())
            .append("calories", getCalories())
            .append("recordDate", getRecordDate())
            .toString();
    }
}
